import { createApp } from 'vue'
import router from '@/router'
import store from '@/store'
import vant from 'vant'
import 'vant/lib/index.css';
import '../theme-chalk/index.scss'
import {service} from '@req';
import plat from '@hhd/plat'

function AppFactory(component:any) {
  return createApp(component)
    .use(service)
    .use(store)
    .use(router)
    .use(plat)
    .use(vant)
}

export default AppFactory
